package com.zuipin.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.zuipin.entity.SysRoleMenu;
import com.zuipin.mapper.SysRoleMenuMapper;
import com.zuipin.service.ISysRoleMenuService;
import com.zuipin.util.Pagination;

/**
 * 角色-菜单(权限)服务实现
 * 
 * @ClassName: SysRoleMenuSer5viceImpl
 * @Description: TODO
 * @author  robot
 * @date 2017年09月147日 09:21:09
 */
@Service
public class SysRoleMenuServiceImpl implements ISysRoleMenuService {
	
	@Resource
	private SysRoleMenuMapper sysRoleMenuMapper;
	
	@Override
	public SysRoleMenu findById(Long id) {
		return sysRoleMenuMapper.findById(id);
	}
	
	@Override
	public void insert(SysRoleMenu sysRoleMenu) {
		sysRoleMenuMapper.insert(sysRoleMenu);
	}
	
	@Override
	public void update(SysRoleMenu sysRoleMenu) {
		sysRoleMenuMapper.update(sysRoleMenu);
	}
	
	@Override
	public void delete(Long id) {
		sysRoleMenuMapper.delete(id);
		
	}
	
	@Override
	public List<SysRoleMenu> seachSysRoleMenu(SysRoleMenu sysRoleMenu, Pagination page) {
		return sysRoleMenuMapper.seachSysRoleMenu(sysRoleMenu, page);
	}
	
	@Override
	public List<SysRoleMenu> findSysRoleMenuBySelected(SysRoleMenu sysRoleMenu) {
		// TODO Auto-generated method stub
		return sysRoleMenuMapper.findSysRoleMenuBySelected(sysRoleMenu);
	}
	
}
